package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author: WangYaWei
 * @description:
 * @create: 2019-08-15 14:17
 **/
public interface SpitDao extends MongoRepository<Spit, String> {
    Page<Spit> findByParentid(String parentId, Pageable pageable);
}
